package com.small.site.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author xiaochi
 * @date 2021/12/2 17:22
 * @desc SysLogPojo
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "sys_log")
@FieldNameConstants(onlyExplicitlyIncluded = true)
public class SysLog implements Serializable {
    private static final long serialVersionUID = 5233173051594381057L;

    @Id
    private String id;
    private String userId;
    private String username;
    private String operation;
    private Long time;
    private String method;
    private String params;
    private String ip;
    @FieldNameConstants.Include
    private Date createTime;
}
